package com.ujs.shc.dao;

import com.ujs.shc.pojo.Orders;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper {

    /**
     * 添加订单
     * @param orders
     * @return
     */
    public Integer insertOrders(Orders orders);

    /**
     * 根据用户名查询所其有订单
     * @param uid
     * @return
     */
    List<Orders> selectOrdersesByUid(@Param("uid") Integer uid);
}
